﻿<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Sm01Popup.aspx.vb" Inherits="Sm01Popup" %>

<%@ Register Assembly="ISNet.WebUI.WebTreeView" Namespace="ISNet.WebUI.WebTreeView" TagPrefix="ISWebTreeView" %>

<%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISWebGrid" %>

<%@ Register Assembly="ISNet.WebUI.WebCombo" Namespace="ISNet.WebUI.WebCombo" TagPrefix="ISWebCombo" %>

<%@ Register Assembly="ISNet.WebUI.WebDesktop" Namespace="ISNet.WebUI.WebDesktop" TagPrefix="ISWebDesktop" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="css/style.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <div style="text-align: right; float: left; width: 97%; margin-left: 6px; border: solid; border-color: gray; border-width: 1px; margin-top: 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; box-shadow: 5px 5px 5px #808080; padding: 5px 5px 5px 5px;">


            <table style="float: right;">
                <tr>
                    <td>
                        <asp:ImageButton ID="SaveBtn" runat="server" ImageUrl="Icons/save.jpg" />
                        &nbsp;<asp:ImageButton ID="CancelBtn" runat="server" ImageUrl="Icons/cancel.png" />
                    </td>
                </tr>
            </table>
        </div>
        <br />
        <br />
        <div style="float: left; width: 97%; border: solid; margin-left: 6px; border-color: gray; border-width: 1px; margin-top: 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; box-shadow: 5px 5px 5px #808080; padding: 5px 5px 5px 5px;">


            <div align="center" style="text-align: left;">
                <table align="center">

                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Fund center Code"></asp:Label>
                        </td>
                        <td>
                            <ISWebCombo:WebCombo ID="FundCenter" Width="200px" runat="server" UseDefaultStyle="True"  
                                 DataTextField="Description" DataValueField="FundCenterCode" Height="20px" 
                                 OnInitializeDataSource="FundCenter_InitializeDataSource" AdditionalSearchFields="FundCenterCode" 
                                 AllowWildCardSearch="true">
                                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" ComboMode="MultipleColumns">
                                            </LayoutSettings>
                                            <Columns>
                                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ FundCenter" Width="250px" />
                                                <ISWebCombo:WebComboColumn BaseFieldName="FundCenterCode" Name="FundCenterCode" HeaderText="รหัส FundCenter" Width="80px" />
                                            </Columns>
                                        </ISWebCombo:WebCombo>
                        </td>

                    </tr>
                    <tr>

                        <td><asp:Label ID="Label3" runat="server" Text="Funded Program"></asp:Label>
                        </td>
                        <td>
                            <ISWebCombo:WebCombo ID="FundedProgram" Width="200px" runat="server" UseDefaultStyle="True"  
                                    DataTextField="Description" DataValueField="FundedProgram" Height="20px"
                                  OnInitializeDataSource="FundedProgramProjects_InitializeDataSource" AdditionalSearchFields="FundedProgram" 
                                 AllowWildCardSearch="true">
                                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" ComboMode="MultipleColumns">
                                            </LayoutSettings>
                                            <Columns>
                                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ Funded Program" Width="250px" />
                                                <ISWebCombo:WebComboColumn BaseFieldName="FundedProgram" Name="FundedProgram" HeaderText="รหัส Funded Program" Width="80px" />
                                            </Columns>
                                        </ISWebCombo:WebCombo>
                        </td>

                    </tr>
                    <tr>

                        <td><asp:Label ID="Label2" runat="server" Text="Update By"></asp:Label>&nbsp;<br />
                            (Project Only)</td>
                        <td>
                            <asp:RadioButtonList ID="rblUpdateWith" runat="server" RepeatDirection="Horizontal" style="text-align: left">
                                <asp:ListItem Value="0">โครงการ</asp:ListItem>
                                <asp:ListItem Value="1" Selected="True">กิจกรรม</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>

                    </tr>
                    <tr>

                        <td style="vertical-align:top">
                            <asp:Label ID="Label4" runat="server" Text="Commitment"></asp:Label>
                        &nbsp;</td>
                        <td>
                            <ISWebCombo:WebCombo ID="Cmmts" Width="200px" runat="server" UseDefaultStyle="True"  
                                 DataTextField="Description" DataValueField="CmmtCode" Height="20px" 
                                 OnInitializeDataSource="Cmmts_InitializeDataSource" AdditionalSearchFields="CmmtCode" 
                                 AllowWildCardSearch="true">
                                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" ComboMode="MultipleColumns">
                                            </LayoutSettings>
                                            <Columns>
                                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ Commitment" Width="250px" />
                                                <ISWebCombo:WebComboColumn BaseFieldName="CmmtCode" Name="FundCenterCode" HeaderText="รหัส Commitment" Width="80px" />
                                            </Columns>
                                        </ISWebCombo:WebCombo>

                        </td>
                    </tr>
                    <tr>

                        <td>
                            <asp:Label ID="Label5" runat="server" Text="Strategy"></asp:Label>
                        </td>
                        <td>
                             <ISWebCombo:WebCombo ID="Strategy" Width="200px" runat="server" UseDefaultStyle="True"  
                                 DataTextField="Description" DataValueField="StrategyCode" Height="20px" 
                                 OnInitializeDataSource="Strategy_InitializeDataSource" AdditionalSearchFields="StrategyCode" 
                                 AllowWildCardSearch="true">
                                            <LayoutSettings AlwaysShowAllRowsOnDropdown="true" AlwaysShowHelpButton="false" ComboMode="MultipleColumns">
                                            </LayoutSettings>
                                            <Columns>
                                                <ISWebCombo:WebComboColumn BaseFieldName="Description" Name="Description" HeaderText="ชื่อ Strategy" Width="250px" />
                                                <ISWebCombo:WebComboColumn BaseFieldName="StrategyCode" Name="FundCenterCode" HeaderText="รหัส Strategy" Width="80px" />
                                            </Columns>
                                        </ISWebCombo:WebCombo>
                        </td>
                    </tr>
                    
                   
                </table>

            </div>
        </div>
        <script>

            var combo1 = document.getElementById("FundCenter");
            combo1.style.height = "20px";

            var combo2 = document.getElementById("FundedProgram");
            combo1.style.height = "20px";

            var combo3 = document.getElementById("Cmmts");
            combo1.style.height = "20px";

            var combo4 = document.getElementById("Strategy");
            combo1.style.height = "20px";

        </script>
        <%= ScriptTxt %>
        <style>
            .WC4-DD-N {
                height: 0px;
            }

            .WC4-DD-A {
                height: 0px;
            }
        </style>
    </form>
</body>
</html>
